package edu.zqu.instructionalMatters.project.service;

import edu.zqu.instructionalMatters.project.service.impl.CollegeServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.math.BigInteger;

/**
 * @Author 何文东
 * @Date 2020/7/23 0:30
 * @Description: 调用 第07、12组.项目框架，用户基础信息 的服务获取学校名称，待该模块提供相应API后仍需修改完善
 * @Version 1.0
 */
@FeignClient(name = "GetCollegeName", url = "http://localhost:8050/permission", fallback = CollegeServiceImpl.class)
@Primary
public interface CollegeService {
    /**
     * 获取学校名称
     */
    @RequestMapping(value = "/api/getCollegeName/{collegeId}", method = RequestMethod.GET)
    public String getCollegeName(@PathVariable BigInteger collegeId);
}
